<?php

/**
 * for windows compatibility on directory
 * @author: markg
 */
$root = str_replace("\\","/",realpath(dirname(__FILE__) . "/../"));
if($root[strlen($root)-1] != "/")
 	$root .= "/";
	
/**
 * define the sessions names
 * @author: markg
 * @on: 6/24/2008
 */
define("SESSION_CLIENT","session_client");

define("ROOT_DIR", $root);
define("DOC_ROOT",$root."docroot/");
define("LIB_DIR",ROOT_DIR . "lib/");
define("APP_CONTROLLERS",ROOT_DIR.'application/default/controllers/');
define("SMARTY_DIR",LIB_DIR . "Smarty/");
define("ZEND_DIR",LIB_DIR . "Zend/");
define("APP_DIR",ROOT_DIR.'application/');
define("DEFAULT_DIR",ROOT_DIR.'application/default/');
define("CAD_DIR",LIB_DIR . "CtrlAltDelete/");
define("CAD_COMMON",CAD_DIR . "Common/");
define("CAD_CONTROLLER",CAD_DIR . "Controller/");
define("CAD_MODEL",CAD_DIR . "Model/");
define("CAD_VIEW",CAD_DIR . "View/");
define("TOOL_DIR",LIB_DIR . "Tools/");

/**
 * define the names used on Zend registry
 * @author: markg
 */

define("REGISTRY_DWC","dwc_config");
define("REGISTRY_VIEW","view");
define("REGISTRY_LOG","log");
define("REGISTRY_MODEL","model");

ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR .
	LIB_DIR . PATH_SEPARATOR .
	TOOL_DIR . PATH_SEPARATOR .
	ZEND_DIR . PATH_SEPARATOR .
	SMARTY_DIR . PATH_SEPARATOR . 
	CAD_DIR . PATH_SEPARATOR .
	CAD_COMMON . PATH_SEPARATOR .
	CAD_CONTROLLER . PATH_SEPARATOR .
	CAD_MODEL . PATH_SEPARATOR .
	CAD_VIEW . PATH_SEPARATOR);

?>
